import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class Main extends JFrame {
	private JTextField textField;
	private JTextField textField_1;
	public Main() {
		setTitle("\u623F\u5C4B\u79DF\u51ED\u7CFB\u7EDF-\u767B\u5F55\u9875");
		getContentPane().setLayout(null);
		
		textField = new JTextField();
		textField.setBounds(173, 72, 156, 21);
		getContentPane().add(textField);
		textField.setColumns(10);
		
		JLabel lblNewLabel = new JLabel("\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u8D26\u53F7");
		lblNewLabel.setBounds(42, 75, 121, 18);
		getContentPane().add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u5BC6\u7801");
		lblNewLabel_1.setBounds(42, 125, 114, 18);
		getContentPane().add(lblNewLabel_1);
		
		textField_1 = new JTextField();
		textField_1.setBounds(173, 122, 156, 21);
		getContentPane().add(textField_1);
		textField_1.setColumns(10);
		
		JButton btnNewButton = new JButton("\u7BA1\u7406\u5458\u767B\u5F55");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				if(textField.getText().equals("admin")&&textField_1.getText().equals("admin"))
					new Check().setVisible(true);
			}
		});
		btnNewButton.setBounds(170, 182, 170, 23);
		this.setSize(500, 300);
		getContentPane().add(btnNewButton);
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub
        new Main().setVisible(true);
	}
}
